Changes the text effect that is playing now into another one over so many frames: the old effect fades out while the new one fades in, and the words are drawn with both of them in between. A calm wave turns into a tornado, a red glow turns into green. text_effect_change(nothing, frames) fades the effect away to plain words and then stops it. With frames at 0 it happens at once, like text_effect_start and text_effect_stop. Call it once, from any event (a Step event is the way).
Works differently on Game Boy - The Game Boy changes one text effect into another as the Game Boy Advance does where it can (it has no Tint on text): the first moving look of each layer shows at once, their sideways moves added.
Works differently on Game Boy Color - Text effects play in a plainer form: letters appear one by one, colors change as made, text shakes or ripples sideways; letters never turn or grow.
Sega Genesis: not built yet - The Sega Genesis will draw text effects its own way.
On other consoles this differs: see Side by side and How the consoles differ.
text_effect_change(effect, frames)| Name | Type |
|---|---|
effect | overlay |
frames | int |
Nothing.
Changes the text effect that is playing now into another one over so many frames: the old effect fades out while the new one fades in, and the words are drawn with both of them in between. A calm wave turns into a tornado, a red glow turns into green. text_effect_change(nothing, frames) fades the effect away to plain letters and then stops it. With frames at 0 it happens at once, exactly like text_effect_start and text_effect_stop.
Call it once, from any event (a Step event is the way). 60 frames are about a second.
A calm wave turning into a tornado over a second:
text_effect_start(te_doc_calm);
text_effect_change(te_doc_wild, 60);Fading an effect away to plain letters over half a second:
text_effect_change(nothing, 30);The words are dressed with both effects at once, by how much of each there is:
Each effect keeps playing on its own clock while it changes, so a wave does not start over.
text_effect_start (or the last one started). With none, the new effect fades in from plain letters.text_effect_start while a change is running ends the change (the effect it is changing to is fine). If your Draw event calls text_effect_start for the old effect every frame, call it for the current effect: keep the name in a variable and change the variable and call text_effect_change together.effect has to be a text effect. A sprite effect needs sprite_effect_change and a screen effect overlay_change.text_effect_strength with tween_to.Every effect that is changing counts as one of the 4 text effects that can play at the same time. A line is built again every frame while it wears an effect (like any text effect), and at most 40 letters of a line move during a change: a longer line is drawn plainly. A game that never calls text_effect_change has none of this in its cartridge.
The effect playing now is the one chosen with text_effect_start (or the last one started). While the change runs the words are dressed with both effects at once: the Tint colors are mixed by how much of each there is, the letters’ moves of both are added, and their sizes are multiplied. A Blocks or See-through track belongs to the screen, and the console has only one of each, so an effect that has them fades out in the first half of the change and the new one fades in during the second half. Calling it again in the middle of a change starts from what is showing, so nothing jumps; up to three effects can be on their way at once, and a fourth drops the one that is nearly gone. Do not call text_effect_start for the old effect every frame while it runs, because starting another effect ends the change: call text_effect_start once, then text_effect_change. Each effect that is changing counts as one of the text effects that play at the same time (4). A game that never calls it has none of this in its cartridge.